package com.itmayiedu.api.service;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.itmayiedu.base.ResponseBase;
import com.itmayiedu.entity.UserEntity;
@RequestMapping("/member")	
public interface MemberService {
	@RequestMapping("/findUserById")
	//使用userId查找用户信息
	ResponseBase findUserById(Long userId);
	@RequestMapping("/registerUser")
	ResponseBase registerUser(@RequestBody UserEntity userEntity);
	@RequestMapping("/login")
	ResponseBase login(@RequestBody UserEntity user);
	
	//使用token进行登陆
	@RequestMapping("/findByTokenUser")
	ResponseBase findByTokenUser(@RequestParam("token") String token);
	//使用OpenId查找用户信息
	@RequestMapping("/findByOpenIdUser")
	ResponseBase findByOpenIdUser(@RequestParam("openid") String openId);
	//使用OpenId查找用户信息
	@RequestMapping("/qqLogin")
	ResponseBase qqLogin(@RequestBody UserEntity user);
}
